package com.wuchengdong.web.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("employee")
@ApiModel("员工表")
public class Employee {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主员工编号")
    private Integer id;

    @ApiModelProperty("员工姓名")
    private String name;

    @ApiModelProperty("员工家庭住址")
    private String address;

    @ApiModelProperty("员工职位")
    private String position;

    @ApiModelProperty("员工电话号码")
    private String phone;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;
}
